package cn.tedu.erp.project.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class PermissionUpdateDTO implements Serializable {
    @ApiModelProperty(value = "权限名称", required = true, example = "后台管理-权限-列表")
    @NotNull(message = "修改权限失败,必须填写名称!")
    /*权限名称*/
    private String name;
    @ApiModelProperty(value = "权限值", required = true, example = "/erp/permission/read")
    @NotNull(message = "修改权限失败,必须填写权限值!")
    /*权限值*/
    private String value;
    @ApiModelProperty(value = "权限简介", required = true, example = "读取权限数据")
    @NotNull(message = "修改权限失败,必须填写简介!")
    /*权限简介*/
    private String description;
    @ApiModelProperty(value = "权限序号", required = true, example = "76")
    @NotNull(message = "修改权限失败,必须填写序号!")
    /*权限序号*/
    private Long sort;
}
